RunScriptRequest

data class RunScriptRequest(scriptId: ScriptId, executionContextId: ExecutionContextId?, objectGroup: String?, silent: Boolean?, includeCommandLineAPI: Boolean?, returnByValue: Boolean?, generatePreview: Boolean?, awaitPromise: Boolean?)

Represents request frame that can be used with Runtime#runScript operation call.

Runs script with given id in a given context.

See also

Constructors

RunScriptRequest
Link copied to clipboard
fun RunScriptRequest(scriptId: ScriptId, executionContextId: ExecutionContextId? = null, objectGroup: String? = null, silent: Boolean? = null, includeCommandLineAPI: Boolean? = null, returnByValue: Boolean? = null, generatePreview: Boolean? = null, awaitPromise: Boolean? = null)

Properties

awaitPromise
Link copied to clipboard
val awaitPromise: Boolean? = null
Whether execution should await for resulting value and return once awaited promise is resolved.
executionContextId
Link copied to clipboard
val executionContextId: ExecutionContextId? = null
Specifies in which execution context to perform script run.
generatePreview
Link copied to clipboard
val generatePreview: Boolean? = null
Whether preview should be generated for the result.
includeCommandLineAPI
Link copied to clipboard
val includeCommandLineAPI: Boolean? = null
Determines whether Command Line API should be available during the evaluation.
objectGroup
Link copied to clipboard
val objectGroup: String? = null
Symbolic group name that can be used to release multiple objects.
returnByValue
Link copied to clipboard
val returnByValue: Boolean? = null
Whether the result is expected to be a JSON object which should be sent by value.
scriptId
Link copied to clipboard
val scriptId: ScriptId
Id of the script to run.
silent
Link copied to clipboard
val silent: Boolean? = null
In silent mode exceptions thrown during evaluation are not reported and do not pause execution.

Sources

jvm source
Link copied to clipboard